﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Linq;

namespace Ocean.His.MedicalInsurance
{
    /// <summary>
    /// 签退输入
    /// 9002
    /// </summary>
    [DataContract]
    public class SignOutModel
    {
        /// <summary>
        /// 签到编号
        /// </summary>
        [DataMember(Name = "sign_no")]
        public string SignNo { get; set; }

        /// <summary>
        /// 操作员编号
        /// </summary>
        [DataMember(Name = "opter_no")]
        public string OpterNo { get; set; }
    }

    [DataContract]
    public class SignOutRequestModel
    {
        [DataMember(Name = "signOut")]
        public SignOutModel SignOutModel { get; set; }
    }

    /// <summary>
    /// 9002签退输入
    /// </summary>
    [DataContract]
    public class SI9002RequestModel : SIBaseRequestModel
    {
        /// <summary>
        /// 交易输入
        /// </summary>
        [DataMember(Name = "input")]
        public SignOutRequestModel Input { get; set; }

        public SI9002RequestModel(MedicalInsuranceOption medicalInsuranceOption) : base(medicalInsuranceOption)
        {
            Input = new SignOutRequestModel();
            Infno = MedicalInsuranceConst.SIGN_OUT_FUNCTION;
        }

        public void SetSignInModel(string signNo, string userId)
        {
            Input.SignOutModel.SignNo = signNo;
            Input.SignOutModel.OpterNo = userId;
        }
    }
}
